@isTest
private class SalesYszxdetailsHandlerTest{
 static testMethod void testMethod1(){
   // 客户
        Account acc1 = TestUtils.createAccount();
       //识别码
       acc1.NCICCode__c = '0000001';
        insert acc1;
       //产品
       Product__c pro1 = TestUtils.createProduct();
       //存货编码
       pro1.pk_invbasdoc__c = '0000001';
       insert pro1;
       
       //销售明细
       SalesYszxdetails__c sa = new SalesYszxdetails__c();
       sa.pk_cubasdoc__c = '0000001';
       sa.pk_invbasdoc__c = '0000001';
       sa.RelateAccount__c = acc1.Id;
       insert sa;
       
       sa.pk_cubasdoc__c = '0000001';
       update sa;
       sa.pk_invbasdoc__c = '0000001';
       update sa;
     
   }
}